package com.pylc.model.entity;

import com.pylc.model.constant.ApplyState;

import javax.persistence.*;

/**
 * @author Lindsey
 */
@Entity
@Table
public class Brand extends BaseEntity {
    private String name;
    private String logo;
    private Integer sortOrder;
    private Boolean isRecommended;
    private ApplyState applyState;
    private Store store;

    @Column
    public Boolean getRecommended() {
        return isRecommended;
    }

    public void setRecommended(Boolean recommended) {
        isRecommended = recommended;
    }

    @Column
    public String getLogo() {
        return logo;
    }

    public void setLogo(String logo) {
        this.logo = logo;
    }

    @Column
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Column
    public Integer getSortOrder() {
        return sortOrder;
    }

    public void setSortOrder(Integer sortOrder) {
        this.sortOrder = sortOrder;
    }

    @Column
    public ApplyState getApplyState() {
        return applyState;
    }

    public void setApplyState(ApplyState applyState) {
        this.applyState = applyState;
    }

    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name="store_id")
    public Store getStore() {
        return store;
    }

    public void setStore(Store store) {
        this.store = store;
    }
}
